import logging
loggr = logging.getLogger()
loggr.setLevel(logging.DEBUG)

loggr.info("这是一条信息级别的日志")